package request

// SupplierCreateRequest 创建供应商请求
type SupplierCreateRequest struct {
	Name    string `json:"name" binding:"required"`
	Contact string `json:"contact"`
	Phone   string `json:"phone"`
	Email   string `json:"email" binding:"omitempty,email"`
	Address string `json:"address"`
	Remark  string `json:"remark"`
	UserID  uint   `json:"userId"`
}

// SupplierUpdateRequest 更新供应商请求
type SupplierUpdateRequest struct {
	ID      uint   `json:"id" binding:"required"`
	Name    string `json:"name" binding:"required"`
	Contact string `json:"contact"`
	Phone   string `json:"phone"`
	Email   string `json:"email" binding:"omitempty,email"`
	Address string `json:"address"`
	Remark  string `json:"remark"`
	UserID  uint   `json:"userId"`
}

// SupplierListRequest 供应商列表请求
type SupplierListRequest struct {
	PageRequest
	Keyword string `form:"keyword"`
}
